

all: libhello.a test

test: test.o libhello.a
	gcc  -L. -Wl,-Bstatic -lhello -Wl,-Bdynamic -o $@ $^

libhello.a: hello.o
	ar -r $@ $^
clean:
	rm *.o

